Skip to contentSkip to conversation

Raven Ridge: Banding on eDP display

Bug 108825 [email protected] 1 participant 14 messages Nov 21, 2018 – Dec 16, 2018

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=108825

Bug ID: 108825
Summary: Raven Ridge: Banding on eDP display
Product: DRI
Version: XOrg git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: DRM/AMDgpu
Assignee: [email protected]
Reporter: [email protected]

Using this test there are 64 distinct bands rather than any smoothness:
http://www.lagom.nl/lcd-test/gradient.php

It looks like this except there are 64 bands whereas the picture shows 32
bands: http://www.lagom.nl/lcd-test/img/gradient-h-32col.png

Computer is Lenovo A485 with Ryzen PRO 2700U

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=108825

--- Comment #1 from Samantha McVey <[email protected]> --- Created attachment 142561
--> https://bugs.freedesktop.org/attachment.cgi?id=142561&action=edit
dmesg

bpc seems to be detected as 6, but visually there does not appear to be any kind of dithering going on, resulting in bad banding during movies etc in addition to the test I posted in the last message.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=108825

--- Comment #2 from Samantha McVey <[email protected]> --- Created attachment 142562
--> https://bugs.freedesktop.org/attachment.cgi?id=142562&action=edit
xorg log

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=108825

--- Comment #3 from Samantha McVey <[email protected]> --- Created attachment 142563
--> https://bugs.freedesktop.org/attachment.cgi?id=142563&action=edit
dmesg with drm.debug=0x1

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

[Bug 108825] Regression Raven Ridge: Banding on eDP display

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=108825

Samantha McVey <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Version|XOrg git                    |unspecified
            Summary|Raven Ridge: Banding on eDP |Regression Raven Ridge:
                   |display                     |Banding on eDP display

--- Comment #4 from Samantha McVey <[email protected]> --- Looks like this is a regression. Dithering works in 4.19.2 but does not work in amd-staging-drm-next.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

[Bug 108825] Regression Raven Ridge: Banding on eDP display

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=108825

--- Comment #5 from Samantha McVey <[email protected]> --- I have bisected it to commit: drm/amd/display: Support amdgpu "max bpc" connector property
307638884f721b02b6a54ee8b351c5b4434bd4a6 Author: Nicholas Kazlauskas <[email protected]>

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw

[Bug 108825] Regression Raven Ridge: Banding on eDP display

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=108825

--- Comment #6 from Nicholas Kazlauskas <[email protected]> --- (In reply to Samantha McVey from comment #5)

Quoted 4 lines

I have bisected it to commit: drm/amd/display: Support amdgpu "max bpc" connector property
307638884f721b02b6a54ee8b351c5b4434bd4a6 Author: Nicholas Kazlauskas <[email protected]>

This isn't a regression from 4.19 but rather a fix for 4.18 where bpc was uncapped from 8 unconditionally. It locked out high refresh modes for high resolution panels with max bpc greater than 8.

The reported 6bpc in your dmesg log comes from DRM itself and not amdgpu. It's what's being reported as being supported by your panel from its EDID. I'm not sure if this is the panel itself reporting itself wrong or if there's a quirk affecting it from the edid qurik list in drm_edid.c.

You can try reverting my patch on amd-staging-drm-next to see if you still get the banding.

Or you could try setting the "max bpc" property to something higher (like 16). You should be able to add this as an "Option" to a conf file in /etc/X11/xorg.conf.d for your Monitor.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw

[Bug 108825] Regression Raven Ridge: Banding on eDP display

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=108825

--- Comment #7 from Samantha McVey <[email protected]> --- Nicholas,

Reverting that commit (307638884f721b02b6a54ee8b351c5b4434bd4a6) on the top of amd-staging-drm-next resolves the banding issues. So it is that commit that is causing the problem.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw

[Bug 108825] Regression Raven Ridge: Banding on eDP display

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=108825

--- Comment #8 from Nicholas Kazlauskas <[email protected]> --- Created attachment 142652
--> https://bugs.freedesktop.org/attachment.cgi?id=142652&action=edit
0001-drm-amd-display-Fix-unintialized-max_bpc-state-value.patch

Does this help fix the issue?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw

[Bug 108825] Regression Raven Ridge: Banding on eDP display

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=108825

--- Comment #9 from Samantha McVey <[email protected]> --- It doesn't compile with that patch:

drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function ‘dm_crtc_duplicate_state’:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:2991:7: error:
‘struct dm_crtc_state’ has no member named ‘max_bpc’

  state->max_bpc = cur->max_bpc;
       ^~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:2991:22: error:
‘struct dm_crtc_state’ has no member named ‘max_bpc’
  state->max_bpc = cur->max_bpc;
                      ^~
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw

[Bug 108825] Regression Raven Ridge: Banding on eDP display

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=108825

Nicholas Kazlauskas <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

 Attachment #142652|0                           |1

is obsolete| |

--- Comment #10 from Nicholas Kazlauskas <[email protected]> --- Created attachment 142653
--> https://bugs.freedesktop.org/attachment.cgi?id=142653&action=edit
v2-0001-drm-amd-display-Fix-unintialized-max_bpc-state-va.patch

I meant to copy the property for the dm connector state, sorry.

Try this patch instead.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw

[Bug 108825] Regression Raven Ridge: Banding on eDP display

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=108825

--- Comment #11 from Samantha McVey <[email protected]> --- new_state->max_bpc = cur->max_bpc;

cur doesn't exist here (fails to compile with v2 patch). Did you mean state->max_bpc?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw

[Bug 108825] Regression Raven Ridge: Banding on eDP display

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=108825

--- Comment #12 from Samantha McVey <[email protected]> --- Nicholas,

Your last patch but with new_state->max_bpc = state->max_bpc; instead of new_state->max_bpc = cur->max_bpc; resolves the issue.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw

[Bug 108825] Regression Raven Ridge: Banding on eDP display

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=108825

Samantha McVey <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #13 from Samantha McVey <[email protected]> --- Going to close this one as fixed.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel